<?php

namespace App\Models\Gas;

use App\Models\Model;

class GasYhCheck extends Model
{
    protected $table = 'akbus_gas_yh_check';

    protected $fillable = [
        'date',
        'license_plate_num',
        'amount',
        'volume',
    ];

    /**
     * 拼接车牌号字符
     *
     * @param  string  $value
     *
     * @return string
     */
    public function getLicensePlateNumAttribute($value)
    {
        return '陕G'.$value;
    }
}
